﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE.UPDATEFIELDS;

namespace PACKETPARSERMAX20.CORE
{
    public class WoWObjectItem : WoWObjectBase
    {
        public WoWObjectItem(WoWCore sender, UInt64 guid, TypeID pTypeID)
            : base(sender, guid, pTypeID)
        {

        }

        public override string Name
        {
            get
            {
                if (base.Name == null)
                {
                    if (Fields == null) { return base.Name; }
                    base.Name = GlobalCache.GetItemName(ENTRY);


                }

                return base.Name;
            }
            internal set
            {
                base.Name = value;
            }
        }
    }
}
